package com.knife.lov.infra.aspect;

import org.aopalliance.aop.Advice;
import org.springframework.aop.Pointcut;
import org.springframework.aop.support.AbstractPointcutAdvisor;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author tianhao.luo@hand-china.com
 * @version 1.0
 * @date 2022年04月16日 星期六 12:46 上午
 * @description
 * @since 1.0
 */
@Component
public class KnifeLovProcessAdvisor extends AbstractPointcutAdvisor {
    @Resource
    private KnifeLovProcessPointcut knifeLovProcessPointcut;
    @Resource
    private KnifeLovProcessAdvice knifeLovProcessAdvice;

    @Override
    public Pointcut getPointcut() {
        return knifeLovProcessPointcut;
    }

    @Override
    public Advice getAdvice() {
        return knifeLovProcessAdvice;
    }
}
